<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改施工单信息')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-setupbill-edit" th:object="${setupbill}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">施工单日期：</label>
                <div class="col-sm-8">
                    <div class="input-group">
                        <input name="ddate" readonly="true" th:value="${#dates.format(setupbill.ddate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label ">施工单单号：</label>
                <div class="col-sm-8">
                    <input name="code" readonly="true" th:field="*{code}" class="form-control" type="text" >
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">施工单种类：</label>
                <div class="col-sm-8">
                    <!--<select name="ctype" class="form-control m-b" required>
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>-->
                    <input name="ctype" readonly="true" th:field="*{ctype}" class="form-control" type="text" >
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label ">VIN码：</label>
                <div class="col-sm-8">
                    <input name="vin" readonly="true" th:field="*{vin}" class="form-control" type="text" >
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">车型：</label>
                <div class="col-sm-8">
                    <input name="carstd" readonly="true" th:field="*{carstd}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label ">施工单状态：</label>
                <div class="col-sm-8">
                    <input name="st" readonly="true" th:field="*{st}" class="form-control" type="text" >
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">施工时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="sysdt" readonly="true" th:value="${#dates.format(setupbill.sysdt, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" >
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label ">施工单保存人员：</label>
                <div class="col-sm-8">
                    <input name="emp" readonly="true" th:field="*{emp}" class="form-control" type="text" >
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">施工单审核人员：</label>
                <div class="col-sm-8">
                    <input name="creditemp" readonly="true" th:field="*{creditemp}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input name="memo" th:field="*{memo}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "erp/setupbill";
        $("#form-setupbill-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/editPC", $('#form-setupbill-edit').serialize());
            }
        }

        $("input[name='ddate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='sysdt']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='creditdt']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>